package com.sqx.modules.course.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sqx.common.utils.Result;
import com.sqx.modules.course.entity.Course;

import java.math.BigDecimal;

public interface CourseService extends IService<Course> {
    Result insertCourse(Course course);

    Result updateCourse(Course course);

    Result updateDelete(Long id);

    Result selectCourse(Integer page, Integer limit, Long classifyId, String title,Integer isRecommend,
                        Integer status,Long bannerId,Integer sort,String token, Integer isPrice,Integer selType);

    Result selectCourseById(Integer page,Integer limit,Long id,Integer good);

    Result selectCourseTitle(Integer page, Integer limit, String title, Long userId);

    Result synCourse();

    Result updateCourseDetails(String ids, BigDecimal price,String content,String titleImg);

    Result updateCourseStatus(String ids, Integer status);

    Result deleteCourseByIds(String ids);

    Result deleteCourseDetailsByIds(String ids);

    Result selectHomePage(Long userId, Integer page,Integer limit, String title);

    Result selIsCollect(Long courseId, Long userId);

    Result selectRecommendCourseDetailsList(Long userId, Integer page, Integer limit);

    Result selCourseByCourseCollect(Long userId,Integer courseId,int classify);

    Result selectHomePageCourse(Integer page, Integer limit, String title,String userId);

    Result addCoursePursue(Long userId, Integer courseId);

    Result coursePursueByUserId(Long userId,Integer page,Integer limit);

    Result courseService();
}
